user = {
	init: function() {
		// Determine the UID for the user
		if (DWfile.exists(user.getUIDFileLocation())) {
			user.uid = DWfile.read(user.getUIDFileLocation());
		} else {
			user.uid = generateUID();
			var result = remoteData.interpretServerBoolean(remoteData.requestData(ws.CREATECLIENT, {'uid':user.uid}));
			if (result == true)
				DWfile.write(user.getUIDFileLocation(), user.uid);				
		}
	},
	getUIDFileLocation: function() {
		return dw.getConfigurationPath() + "/Shared/du/config/du_uid.dat"; 
	}
}